<div class="pagetitle">
	<h1>Thêm thành viên sử dụng mã voucher </h1>
</div>
<div class="maincontent">  
    <div class="contentinner content-dashboard">    
        <p id="label_form" style="margin: 35px 5px 10px 0px;font-size: 18px;">
            <label class="hr">Tìm kiếm mã voucher</label>
        </p>
        <?php $attr = array('class' => 'stdform'); echo form_open('', $attr)?>
            <div id="form_id">
                <p>
                	<label>Nhập mã code voucher và ấn vào nút "Tìm kiếm"</label>
                    <span class="field"><input type="text" value="" id="code_coupon" name="code_coupon" class="input-xxlarge" placeholder="Ví dụ : 12345" /></span>
                </p>
                <p>
                    <label></label>
                    <button class="btn btn-rounded btn-search-click" type="button"> <i class="iconfa-ok"></i> <span class="search_btn">&nbsp;Tìm kiếm</span></button>
                    <button class="btn btn-rounded" type="button" onclick="window.location='<?php echo $baseurl.'manage/campaign/active-user-ecoupon'?>'"> <i class="icon-arrow-right"></i> &nbsp; Hủy bỏ</button>
                </p>
            </div>
        </form>
 
    </div>
</div>

<div id="hideReport" style="display: none;"></div>

<style>
.hr{
    margin: 10px 0px;padding-bottom: 10px !important;width: 98% !important;float: left;text-align: left !important;font-size: 19px;border-bottom: 1px solid #fff;border-bottom: 1px solid #ececef;box-shadow: 0px 1px 0px #FFF;
}
</style><script>
$(function()
{
    $(".btn-search-click").click(function()
    {
        var code_coupon = $("#code_coupon").val();
		if( code_coupon == null || code_coupon == '' ){
			jAlert('Bạn cần nhập mã code voucher', 'Thông báo');
			return false;
		}else{
			window.location='<?php echo $baseurl."active-use-voucher/";?>'+code_coupon;
		}
	})
});
</script>